{checkActionsTpl location="tpl_pligg_module_simple_messaging_start"}
{include file="./modules/simple_messaging/templates/menu.tpl"}
{config_load file=$simple_messaging_lang_conf}
{literal}
<style type="text/css">
#spm {
	background:#f2fbff;
	border:1px solid #c3eafa;
	border-collapse:separate;
}
#spm th {
	background:#e6f7fd;
	border-top:1px solid #fff;
	border-right:1px solid #aae0ff;
	border-bottom:1px solid #cfeffb;
	border-left:1px solid #fff;
	padding:7px 10px;
	text-align:left;
}
#spm td {
	border-top:1px solid #fff;
	border-bottom:1px solid #cfeffb;
	border-right:1px solid #cfeffb;
	border-left:1px solid #fff;
	padding:3px 10px;
}
</style>
{/literal}
	<form id="bulk_moderate" name="bulk_moderate" action="{$my_pligg_base}/module.php?module=simple_messaging&view=inbox&action=bulkmod" method="post">
		<table id="spm" cellpadding="0" cellspacing="0">
			<th width="25%">{#PLIGG_MESSAGING_From#}</th>
			<th width="40">{#PLIGG_MESSAGING_Subject#}</th>
			<th width="25%">{#PLIGG_MESSAGING_Sent#}</th>
			<th width="10%">{#PLIGG_MESSAGING_Delete#}</th>
			<tbody>
			{if $msg_array neq ""}	
			{section name=themessage loop=$msg_array}
				<tr id="msg_row_{$msg_array[themessage].id}">
					<td><a href="{$my_pligg_base}/user.php?login={$msg_array[themessage].sender_name}">{$msg_array[themessage].sender_name}</a></td>
					<td>
						{if $msg_array[themessage].readed eq 0}<img src="{$simple_messaging_path}images/new.png" align="absmiddle" />{/if}
						<a href="{$URL_simple_messaging_viewmsg}{$msg_array[themessage].id}">{$msg_array[themessage].title}</a>
					</td>
					<td>{$msg_array[themessage].date}</td>
					<td align="center"><input type="checkbox" name="message[{$msg_array[themessage].id}]" id="message-{$msg_array[themessage].id}" value="delete" ></td>
				</tr>
			{/section}
			</tbody>
			{else}
			<tbody>
				<tr>
					<td colspan="4" align="center"><strong>{#PLIGG_MESSAGING_No_Messages#}</strong></td>
				</tr>
			</tbody>
			{/if}
		</table>
		{if $msg_array neq ""}<p  align="right"><input type="submit" name="submit" value="{#PLIGG_MESSAGING_Delete_Selected#}" /></p>{/if}
	</form>
</div>
{config_load file=simple_messaging_pligg_lang_conf}
{checkActionsTpl location="tpl_pligg_module_simple_messaging_end"}